package com.example.design.c.chain;

/**
 * 流程处理
 * 董事长处理逻辑
 */
public class ChairManFlowHandler extends FlowHandler {
    /**
     * 董事长的标识
     */
    private static final int FLAG = 3;

    @Override
    public void handle(FLowRequest request) {

        boolean result = preHandle(request, FLAG);

        if (result) {
            request.log("董事长也看了, 并放了你三年假");
            goNext(request);
        }
    }
}
